package demo.rabbitmq.springboot.provider;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @description description
 * @author zhouxinghuai
 * @date 2018-10-30
 */
@Component
public class MyProvider {

    @Autowired
    AmqpTemplate amqpTemplate;

    public void send() {
        amqpTemplate.convertAndSend("", "FIRST_QUEUE", "hello first queue");
    }


}
